﻿using UnityEngine;
using System.Collections;

namespace ResourceClasses
{
	public class Resource
	{
		private string name;
		private int amount;

		public Resource ()
		{
			name = "default";
			amount = -1;
		}

		public Resource (string nameOfResource, int amount)
		{
			name = nameOfResource;
			this.amount = amount;
		}
	
		public string Name {
			get {
				return name;
			}
			set {
				name = value;
			}
		}
	
		public int Amount {
			get {
				return amount;
			}
			set {
				amount = value;
			}
		}

		public override string ToString ()
		{
			return Name + ": " + Amount.ToString () + "\n";
		}
	}
}